
TARGET 		= main
SRCS 		= $(wildcard ./*.c) $(wildcard ./algorithm/*.c)
OBJS 		= $(SRCS:.c = .o)
CC 			= gcc
CCFLAGS 	= -g -Wall -O0

INCLUDES 	= -I./ 
INCLUDES   += -I./algorithm

LIBS 		= -L./
LIBS 	   += -lpthread -lm

#=========Do Not Modify the Script Below=================

$(TARGET) : $(OBJS)
	$(CC) $^ -o $@ $(INCLUDES) $(LIBS)

%.o : %.c
	$(CC) -c $< $(CCFLAGS)

clean:
	rm -f $(TARGET)

